package com.boilermaker.mq.mqclient;

import lombok.Getter;
import lombok.Setter;

import java.io.IOException;

@Getter
@Setter
public class ConnectionFactory {
    // 服务器的 IP 地址
    private String host;
    // 服务器的端口号
    private int port;
    // TODO: 具体要访问的虚拟主机
    private String virtualHostName;
    private String username;
    private String password;

    public Connection newConnection() throws IOException {
        return new Connection(host, port);
    }
}
